package cn.codergege.kotlinclass.obj

open class ObjExpDemo {
    fun sayHi() = println("Hi")
    open fun sayHello() = println("Hello")
}

fun main(args: Array<String>) {
    val codergege = object: ObjExpDemo() {
        override fun sayHello() {
            println("Hello~~")
        }
    }
    with(codergege) {
        sayHi()
        sayHello()
    }
}